from django.urls import path
from .views import invoice_api, invoice_id_api, reports_api, list_client_payments, list_appointments_with_notes, \
    client_invoices, retrieve_and_update_client_invoice, create_client_invoice, update_client_invoice, \
    invoice_email_to_client, charge_by_stripe, super_bill_list, super_bill_detail, list_attendance, appointment_invoice


app_name = 'billing'


urlpatterns = [
    path('invoices', invoice_api, name='invoice_api'),
    path('invoices/<str:invoice_id>', invoice_id_api, name='invoice_id_api'),
    path('appointment-invoice/<str:pk>', appointment_invoice, name='appoointment invoice api'),
    path('reports', reports_api, name='report api'),
    path('client-payment', list_client_payments),
    path('client-overview', list_appointments_with_notes),
    path('client-invoices', client_invoices, name='client-invoices'),
    path('client-invoices/<int:pk>', retrieve_and_update_client_invoice, name='retrieve-client-invoice'),
    # path('client-invoices/create/', create_client_invoice, name='create-client-invoice'),
    # path('client-invoices/<int:pk>/invoice-email/', invoice_email_to_client, name='invoice-email-to-client'),
    path('client-invoices/<int:pk>/charge-by-stripe', charge_by_stripe, name='charge-by-stripe'),
    path('superbill', super_bill_list, name='super_bill_list'),
    path('superbill/<int:pk>', super_bill_detail, name='super_bill_detail'),
    path('superbill/<int:pk>/invoice_email_to_client', invoice_email_to_client, name='invoice_email_to_client'),
    path('attendance', list_attendance, name='attendance'),
    path('client-invoices/<int:pk>/invoice_email_to_client', invoice_email_to_client, name='attendance')
]
